package tech.aistar.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.mapper.CustomerMapper;
import tech.aistar.model.entity.Customer;
import tech.aistar.service.ICustomerService;

import java.util.List;

@Service
public class CustomerServiceIpml implements ICustomerService {
    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public List<Customer> findAll() {
        return null;
    }

    @Override
    public Customer getById(Integer id) {
        return customerMapper.getById(id);
    }

    @Override
    public Customer getByEmail(String email) {
        return customerMapper.getByEmail(email);
    }

    @Override
    public Customer getByName(String name) {
        return customerMapper.getByName(name);
    }
}
